﻿using EasyLanguage.Data.Contracts.Repository;
using EasyLanguage.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EasyLanguage.DataAccess.Repository
{
    public class CountryRepository : EFRepository<Country>, ICountryRepository
    {
        public IQueryable<Country> GetAllCountries()
        {
            return GetAll();
        }

        public Country GetByName(string countryName)
        {
            return DbSet.SingleOrDefault(x => x.CountryName == countryName);
        }
    }
}
